package com.dippy.utils;

import com.dippy.shiro.AccountProfiles;
import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Component;

@Component
public class ShiroUtil {

    public static AccountProfiles getProfile() {
        return (AccountProfiles) SecurityUtils.getSubject().getPrincipal();
    }
}
